package com.qf.sys.po;

import java.util.Date;

/**
 * @创建人 sunsir Email:sunsir163@163.com
 * @创建时间 2022/4/30
 * @描述
 */
public class User {//id empNo loginName password ename tel sex age birthday status hiredate dimissionTime head_picmgrid roleid
    private Integer id;         //序号 离职时间头像    ->id
    private Integer empNo;      //员工编号            ->empNo
    private String loginName;   //登录名              ->loginName
    private String password;    //密码               ->password
    private String ename;       //真实姓名            ->ename
    private String tel;         //用户电话            ->tel
    private Integer sex;        //性别(0男1女)        ->sex
    private Integer age;        //年龄               ->age
    private Date birthday;      //生日               ->birthday
    private Integer status=1;   //状态(0禁用 1启用)   ->status
    private Date hiredate;      //入职时间           ->hiredate
    private Date dimissionTime; //离职时间           ->dimissionTime
    private String headPic;     //头像              ->head_pic
    private User mgr;           //所属上司          ->mgrid
    private Role role;          //用户职位          ->roleid

    //get set 构造器方法

    public User() {
    }

    public User(Integer empNo, String loginName, String password, String ename, String tel, Integer sex, Integer age, Date birthday, Integer status, Date hiredate, Date dimissionTime, String headPic, User mgr, Role role) {
        this.empNo = empNo;
        this.loginName = loginName;
        this.password = password;
        this.ename = ename;
        this.tel = tel;
        this.sex = sex;
        this.age = age;
        this.birthday = birthday;
        this.status = status;
        this.hiredate = hiredate;
        this.dimissionTime = dimissionTime;
        this.headPic = headPic;
        this.mgr = mgr;
        this.role = role;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getEmpNo() {
        return empNo;
    }

    public void setEmpNo(Integer empNo) {
        this.empNo = empNo;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getHiredate() {
        return hiredate;
    }

    public void setHiredate(Date hiredate) {
        this.hiredate = hiredate;
    }

    public Date getDimissionTime() {
        return dimissionTime;
    }

    public void setDimissionTime(Date dimissionTime) {
        this.dimissionTime = dimissionTime;
    }

    public String getHeadPic() {
        return headPic;
    }

    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }

    public User getMgr() {
        return mgr;
    }

    public void setMgr(User mgr) {
        this.mgr = mgr;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", empNo=" + empNo +
                ", loginName='" + loginName + '\'' +
                ", password='" + password + '\'' +
                ", ename='" + ename + '\'' +
                ", tel='" + tel + '\'' +
                ", sex=" + sex +
                ", age=" + age +
                ", birthday=" + birthday +
                ", status=" + status +
                ", hiredate=" + hiredate +
                ", dimissionTime=" + dimissionTime +
                ", headPic='" + headPic + '\'' +
                ", mgr=" + mgr +
                ", role=" + role +
                '}';
    }
}
